package demo4.mapper;

import demo4.polo.User;
import demo4.util.IDBUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.sql.Connection;

@Component
public class UserMapper implements IUserMapper{
    @Autowired
    private IDBUtil DBUtil;
    public int insert(User user) {
        System.out.println("插入数据");
        Connection conn = DBUtil.getConnection();
        return 0;
    }
}
